package com.yikaiye.android.yikaiye.http;

/**
 * 接口地址
 */
public class ApiFactory {

    public static final boolean isRelease = false;

    public static final String BASE_URL = "https://uat-service.yikaiye.com";
//    public static final String BASE_URL = "https://c-app-api.yikaiye.com";

    /**
     * h5
     */
    public static final String BASE_H5 = "https://m.yikaiye.com/";

    /**
     * 图片正式环境
     */
    public static final String BASE_IMAGE_URL = "https://i.yikaiye.com";

    /**
     * 图片上传 前缀
     */
    public static final String IMAGE_UPLOAD = "https://ycydown.yikaiye.net/";

    /**
     * 获取产品分类列表
     */
    public static final String GET_TYPE_LIST = BASE_URL + "/api/yky/app/product-info/label/list";

    /**
     * 获取验证码
     */
    public static final String SEND_CODE = BASE_URL + "/api/yky/app/auth/phone";

    /**
     * 登录
     */
    public static final String LOGIN = BASE_URL + "/api/yky/app/user/login";

    /**
     * 重置密码
     */
    public static final String RESET_PASSWORD = BASE_URL + "/api/yky/app/user/resetPassWord";

    /**
     * 获取产品列表
     */
    public static final String GET_PRODUCT_LIST = BASE_URL + "/api/yky/app/product-info/select/product/list";

    /**
     * 产品详情
     */
    public static final String GET_PRODUCT_DETAILS = BASE_URL + "/api/yky/app/product-info/select/product/detail/";

    /**
     * 提交订单(POST) / 查询订单(GET)
     */
    public static final String COMMIT_ORDER = BASE_URL + "/api/yky/app/order-new";

    /**
     * 检查是否存在此套餐
     */
    public static final String CHECK_PRODUCT = BASE_URL + "/api/yky/app/product-info/app/check/product";

    /**
     * 用户协议
     */
    public static final String USER_AGREEMENT = BASE_H5 + "app/app_doc1.html";

    /**
     * 核名
     */
    public static final String CHECK_NAME_URL = "https://m.mingdada.com/checkname";

    /**
     * 起名
     */
    public static final String TO_NAME_URL = "https://m.mingdada.com/toname";

    /**
     * 隐私协议
     */
    public static final String PRIVACY_AGREEMENT = BASE_H5 + "app/app_doc.html";

    /**
     * 取消订单
     */
    public static final String CANCEL_ORDER = BASE_URL + "/api/yky/app/order-new/cancelOrder/";

    /**
     * 取消预订单
     */
    public static final String CANCEL_PRE_ORDER = BASE_URL + "/api/yky/app/order-new/cancelPreOrder/";

    /**
     * 订单详情
     */
    public static final String GET_ORDER_DETAILS = BASE_URL + "/api/yky/app/order-new/selectById/";

    /**
     * 消息列表
     */
    public static final String GET_MESSAGE_LIST = BASE_URL + "/api/yky/app/message/findMessageByUserid/";

    /**
     * 全部标为已读
     */
    public static final String MESSAGE_ALREADY_READ = BASE_URL + "/api/yky/app/message/updateAllMessageStatus/";

    /**
     * 删除消息
     */
    public static final String DELETE_MESSAGE = BASE_URL + "/api/yky/app/message/delMessageById/";

    /**
     * 重新下单
     */
    public static final String ORDER_AGAIN = BASE_URL + "/api/yky/app/order-new/reSave";

    /**
     * 获取个人信息
     */
    public static final String GET_USER_INFO = BASE_URL + "/api/yky/app/userInfo/findByUserId/";

    /**
     * 修改个人信息
     */
    public static final String UPDATE_USER_INFO = BASE_URL + "/api/yky/app/userInfo/UpdateUserDetail";

    /**
     * 上传文件
     */
    public static final String UPLOAD_IMAGE = BASE_URL + "/api/yky/app/common/upload";
//    public static final String UPLOAD_IMAGE = BASE_URL + "/record/upload/common";

    /**
     * 添加企业
     */
    public static final String ADD_COMPANY = BASE_URL + "/api/yky/app/userInfo/updateUserDetailCompany";

    /**
     * 版本更新
     */
    public static final String CHECK_VERSION = BASE_URL + "/api/yky/app/common/version";

    /**
     * 获取用户专属客服
     */
    public static final String GET_CUSTOMER_SERVICE = BASE_URL + "/api/yky/app/common/getCustomerService";

    /**
     * 绑定手机号
     */
    public static final String BIND_PHONE = BASE_URL + "/api/yky/app/user/bindPhone";

    /**
     * 通过手机号查找用户企业
     */
//    public static final String GET_MY_COMPANY_LIST = BASE_URL + "/api/yky/app/userInfo/findCompanysByUserPhone";
    public static final String GET_MY_COMPANY_LIST = BASE_URL + "/api/yky/app/userInfo/findEnterpriseListByUserPhone";

    /**
     * 根据企业ID 查找服务分类
     */
//    public static final String GET_SERVICE_TAB = BASE_URL + "/api/yky/app/userInfo/selectStatusByCompanyId";
    public static final String GET_SERVICE_TAB = BASE_URL + "/api/yky/app/userInfo/findServiceStatusByCreditNo";

    /**
     * 根据企业ID 查找服务
     */
//    public static final String GET_SERVICE_LIST = BASE_URL + "/api/yky/app/userInfo/selectListByCompanyId";
    public static final String GET_SERVICE_LIST = BASE_URL + "/api/yky/app/userInfo/findServiceListByCreditNo";

    /**
     * 根据服务id和周期，查找周期开始结束时间
     */
    public static final String GET_SERVICE_PROGRESS = BASE_URL + "/api/yky/app/userInfo/selectTimeByTrackId";

    /**
     * 获取发票抬头列表
     */
    public static final String GET_BILL_TITLE_LIST = BASE_URL + "/api/yky/app/invoiceTitle/selectByUserId";

    /**
     * 添加或编辑发票抬头
     */
    public static final String ADD_OR_EDIT_BILL_TITLE = BASE_URL + "/api/yky/app/invoiceTitle/save";

    /**
     * 查询发票信息
     */
    public static final String GET_BILL_TITLE_INFO = BASE_URL + "/api/yky/app/invoiceTitle/selectByTitleId";

    /**
     * 删除发票抬头
     */
    public static final String DELETE_BILL_TITLE = BASE_URL + "/api/yky/app/invoiceTitle/UpdateStatusById";

    /**
     * 申请开票
     */
    public static final String APPLY_BILL = BASE_URL + "/api/yky/app/invoiceApply/save";

    /**
     * 查询用户最近一次开票信息
     */
    public static final String GET_BILL_INFO = BASE_URL + "/api/yky/app/invoiceApply/selectOneByOrderUserId";

    /**
     * 我的发票列表（默认获取当前用户当月发票信息）
     */
    public static final String GET_MY_BILL_LIST = BASE_URL + "/api/yky/app/invoiceApply/selectByScreen";

    /**
     * 获取发票详细信息
     */
    public static final String GET_BILL_DETAILS = BASE_URL + "/api/yky/app/invoiceApply/selectByApplyId";

    /**
     * 首页开票入口状态
     */
    public static final String GET_HOME_ICON_STATUS = BASE_URL + "/api/yky/app/invoiceApply/selectButtonByPhone";

}
